package com.zs.infrastructure.util.exception;

/**
 * @description: 自定义异常
 * @author: wzc
 * @createDate: 2021/6/14 0:25
 */
public class ShareException extends RuntimeException {

    private static final long serialVersionUID = 1L;

    //错误码
    private Integer errorCode;

    public ShareException(Integer errorCode, String errorMsg, Throwable e) {
        super(errorMsg, e);
        this.errorCode = errorCode;
    }

    public ShareException(Integer errorCode, String errorMsg) {
        super(errorMsg);
        this.errorCode = errorCode;
    }

    public int getErrorCode() {
        return errorCode;
    }

}
